#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
int urand(void)
{
    int ret;

    struct timeval tv;
    gettimeofday(&tv, NULL);

    srand(tv.tv_sec + tv.tv_usec);
    ret = rand();

    return (ret);
}


int urandft(int f, int t)
{
    int ret;

    ret = urand();
    ret = f + ret%(t-f+1);

    return(ret);
}


int main(int argc, char* argv[])
{
    if(3 != argc) {
        fprintf(stderr, "randomsn 1 100\n");
        exit(EXIT_FAILURE);
    }

    int num = urandft(atol(argv[1]), atol(argv[2]));
    printf("%d\n", num);

    return 0;
}
